package com.niuwa.p2p.dao.channel;

import java.util.List;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.channel.LoanRelativeFile;

@MyBatisDao
public interface LoanRelativeFileDao {
    int deleteByPrimaryKey(Long id);

    int insert(LoanRelativeFile record);

    int insertSelective(LoanRelativeFile record);

    LoanRelativeFile selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(LoanRelativeFile record);

    int updateByPrimaryKey(LoanRelativeFile record);
	/**
	 * 借款项目协议文件列表显示
	 * @param projectNo
	 * @return
	 */
	List<LoanRelativeFile> selectByProjectNo(String projectNo);
	/**
	 * 面签显示 预览协议文件LOAN_FILE_KIND = GENERATE	
	 * @param projectNo
	 * @return
	 */
	List<LoanRelativeFile> selectGenerateFileByProjectNo(String projectNo);
}